package homework;

import java.util.Scanner;

/**
 * @Author Stringzhua
 * @Date 2024/2/1 19:51
 * description:判断一个年份是否为闰年
 */
public class homework03 {
    public static void main(String[] args) {
        Scanner myScanner=new Scanner(System.in);
        System.out.println("请输入年份:");
        int year=myScanner.nextInt();
        if(year%4==0&&year%100!=0||year%400==0){
            System.out.println("是闰年~");
        }else{
            System.out.println("不是闰年~");
        }
    }
}
